package com.fuhao.springbootrabbit.controller;

import com.fuhao.springbootrabbit.Service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhang
 * @title: TopicController
 */
@RestController
public class TopicController {
    @Autowired
    private TopicService topicService;

    @RequestMapping("/topicSend")
    public String DirectSend(){
        topicService.topicSend();
        return "sucess";
    }
}
